<?php	
	// Interface function	
	function oh_module_dragarea($tokens) {
		return oh_this();
	} 
		
	// Option file required
	//require_once(...)
	//require_once(...)
	
	// Main class of module
	class oh_class_dragarea {
		function oh_class_dragarea() {
		
		}
		function open_page() {			
			require_once(oh("path.framework.modules.dragarea")."/header.php");			
			return oh_this();
		}
		function close_page() {			
			require_once(oh("path.framework.modules.dragarea")."/footer.php");			
			return oh_this();
		}
		function open_area($w="100%",$h="500px") {
			echo '<div class="oh-dragarea" style="width:'.$w.';height:'.$h.';">'."\n";
			return oh_this();			
		}
		function close_area() {
			echo '</div>'."\n";		
			return oh_this();			
		}
	}
	
	// Main object of module
	global $oh_object_dragarea;
	$oh_object_dragarea = new oh_class_dragarea();
?>
